#!/usr/bin/env node


const cp = require('child_process');
console.log(process.pid);
const cat = cp.spawn('node',['./03-child.js'],{detached:true,stdio:[0,1,2]});
//cat.stdout.pipe(process.stdout);
//cat.stderr.pipe(process.stderr);
setTimeout(() => {
  console.log('bye!');
  process.exit(1);
},5000)
